// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 全局错误 GET /error */
export async function error(options?: { [key: string]: any }) {
  return request<API.ResultBody>('/error', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 全局错误 PUT /error */
export async function error3(options?: { [key: string]: any }) {
  return request<API.ResultBody>('/error', {
    method: 'PUT',
    ...(options || {}),
  });
}

/** 全局错误 POST /error */
export async function error2(options?: { [key: string]: any }) {
  return request<API.ResultBody>('/error', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 全局错误 DELETE /error */
export async function error5(options?: { [key: string]: any }) {
  return request<API.ResultBody>('/error', {
    method: 'DELETE',
    ...(options || {}),
  });
}

/** 全局错误 PATCH /error */
export async function error4(options?: { [key: string]: any }) {
  return request<API.ResultBody>('/error', {
    method: 'PATCH',
    ...(options || {}),
  });
}
